<admintpl file="header" />
</head>
<body>
<div class="wrap js-check-wrap">
    <form class="form-horizontal js-ajax-form" method="post" action="{:U('Examine/mention_amount',array('display'=>1))}">
        <fieldset>
            <div class="tabbable">
                <div class="tab-content">
                    <table class="table table-bordered">
                        <caption><span style="color:blue"><h2><span style="color:black;">提额设置</span></h2></span></caption>
						<input type='hidden' name='ids' value="{:I('request.ids')}"/>
                        <tr>
                            <td colspan="2">
                                
                            </td>
                        </tr>
                        <tr>
                            <td>选择额度</td>
                            <td><select id='amount_id' name="amount_id">
								<foreach name="list" item="vo">
								<option value="{$vo.id}">{$vo.name}</option>
								</foreach>
								</select></td>
                        </tr>
                        <tr>
                            <td></td>
                            <td><button id="update_jjd" class="btn btn-primary btn-lg" type="button">确定</button></td>
                        </tr>
                        
                    </table>
                </div>
            </div>

            <div class="form-actions">
            </div>
        </fieldset>
    </form>

</div>
<script src="__PUBLIC__/js/common.js"></script>
</body>
<script>
    $(function(){
        $('#update_jjd').click(function(){
		var amount_id=$('#amount_id option:selected') .val();
            $.ajax({
                url: "{:U('Examine/mention_amount',array('display'=>1))}",
                type: "POST",
                dataType: "JSON",
                data: {
                    'ids': "{:I('request.ids')}",
                    'amount_id': amount_id
                },
                success: function (data) {
							if (data.state === 'success') {
                                if (data.referer) {
                                    location.href = data.referer;
                                } else {
                                    art.dialog({
                                        content: data.info,
                                        icon: 'succeed',
                                        ok: function () {
											Wind.use("layer", function () {
												reloadPage(window.parent);
											});
                                            reloadPage(window);
                                            return true;
                                        },

                                    });
                                }
                            } else if (data.state === 'fail') {
                                //art.dialog.alert(data.info);
                                art.dialog({
                                    content: data.info,
                                    icon: 'warning',
                                    ok: function () {
                                        this.title(data.info);
                                        return true;
                                    }
                                });
                            }
                }
            });
        });
    });
</script>
</html>